package Bidostar_Case;

import Bidostar_Data.Baseinfo;
import Bidostar_Page.PrivilegePage;
import org.testng.annotations.Test;

public class PrivilegeCase extends Baseinfo
{
    @Test(priority = 1)
    public void privilegeTest_URL1()
    {
        PublicLogin_ByChromeCase pc = new PublicLogin_ByChromeCase();

        pc.LoginCase_ByChrome_URL1();

        PrivilegePage pp = new PrivilegePage(pc.driver);

        pp.PrivilegeAdd();

        pc.driver.close();
    }

    @Test(priority = 2)
    public void privilegeTest_URL2()
    {
        PublicLogin_ByChromeCase pc = new PublicLogin_ByChromeCase();

        pc.LoginCase_ByChrome_URL2();

        PrivilegePage pp = new PrivilegePage(pc.driver);

        pp.PrivilegeAdd();

        pc.driver.close();
    }

    @Test(priority = 3)
    public void privilegeTest_URL3()
    {
        PublicLogin_ByChromeCase pc = new PublicLogin_ByChromeCase();

        pc.LoginCase_ByChrome_URL3();

        PrivilegePage pp = new PrivilegePage(pc.driver);

        pp.PrivilegeAdd();

        pc.driver.quit();
    }
}
